﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.OMM.HealthMonitor.Entity.Common;

namespace Sinacor.OMM.HealthMonitor.Entity.HftProcessor
{
    [Serializable()]
    public class DistributionRules : IHealthDataReset
    {
        private String _rangePort;
        private Int32? _clientId;
        HealthEntityBase _healthEntityBase;

        public DistributionRules()
        {
            _healthEntityBase = new HealthEntityBase();
        }

        public DistributionRules(HealthEntityBase healthEntityBase)
        {
            _healthEntityBase = healthEntityBase;
        }

        /// <summary>
        /// Start port
        /// </summary>
        public String RangePort
        {
            get { return _rangePort; }
            set { _rangePort = value; }
        }

        /// <summary>
        /// Client Id
        /// </summary>
        public Int32? ClientId
        {
            get { return _clientId; }
            set { _clientId = value; }
        }


        #region IHealthDataReset Members

        public void Reset()
        {
            RangePort = string.Empty;
            ClientId = null;
        }

        #endregion
    }
}
